import service from '@/utils/crmRequest'

export default () => ({

  // 开发客户统计
  CUSTOMER: (data) => {
    return service({
      url: '/api/dev/tong/list',
      method: 'post',
      data
    })
  },

  // 下单统计总金额
  AMOUNT: (data) => {
    return service({
      url: '/api/orderStatistics/sum',
      method: 'post',
      data
    })
  },

  // 下单统计列表
  ORDERSTATISTICS_LIST: (data) => {
    return service({
      url: '/api/orderStatistics/list',
      method: 'post',
      data
    })
  },

  PRODUCTID: (aa) => {
    return service({
      url: `/api/product/getList?keyWord=${aa}`,
      method: 'get',
    })
  },
})
